package online.longzipeng.mywebdemo.commen.annotation;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author lzp
 * @Date:2022/10/18
 * @description: 敏感词校验注解 加上此注解，如果包含敏感词就会抛出错误
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
//@Constraint(validatedBy = SensitiveWordCheckValidator.class)
public @interface SensitiveWordCheck {

	String message() default "包含敏感词，请修改！";

	Class<?>[] groups() default {};

//	Class<? extends Payload>[] payload() default {};
}
